Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Extensions.​Options.​ConfigureNamedOptions<​TOptions>

Assembly: Microsoft.Extensions.Options

Inheritance: object → ConfigureNamedOptions

Implemented Interfaces

Implementation of <see cref="T:Microsoft.Extensions.Options.IConfigureNamedOptions`1" /> .

Properties

public System.​Action<​TOptions>
Action
Gets the configuration action.
public string
Name
Gets the options name.

Methods

public void
Configure​(string name, TOptions options)
Invokes the registered configure <see cref="P:Microsoft.Extensions.Options.ConfigureNamedOptions`1.Action" /> if the <paramref name="name" /> matches.
name The name of the options instance being configured.
options The options instance to configure.
public void
Configure​(TOptions options)
Configures a <typeparamref name="TOptions" /> instance with the <see cref="F:Microsoft.Extensions.Options.Options.DefaultName" /> .
options The options instance to configure.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object